<?php

class IDType extends Eloquent{
	protected $table = 'id_types';
	protected $primaryKey = 'id';
	public static $types = array('User' => 1, 'Place' => 2);

	public static function types($typeName){
		$types = array('User' => 1, 'Place' => 2);
		return $types($typeName);
	}

	public function ids(){
		return $this->hasMany('ID','id_type_id');
	}
}